package com.iot08.common.entity.app;

import com.iot08.common.entity.admin.SysUser;
import lombok.Data;
import org.springframework.data.annotation.Transient;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;

import java.io.Serializable;
import java.util.Date;

/**
 * @version 1.0
 * @Description: 课程页
 * @author: Rock
 * @time: 2021/5/31 14:42
 */
@Data
@Document("course")
public class Course implements Serializable {
    private static final long serialVersionUID = 1L;

    @Field("_id")
    private String id;

    private String name;

    private Double price;

    @Field("original_price")
    private Double originalPrice;

    private Integer index;

    @Field("web_url")
    private String webUrl;

    @Field("img_url")
    private String imgUrl;

    private Integer deleted;

    private String creator;

    @Field("create_time")
    private Date createTime;

    @Field("update_time")
    private Date updateTime;

    @Transient
    private SysUser user;

}
